package com.shirley.netty.handlerorder.outbound;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;

public class OutBoundHandler2 extends ChannelOutboundHandlerAdapter {
    @Override
    public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
        System.out.println("Into OutBoundHandler2.write");
        ctx.write(msg);
        System.out.println("Exit OutBoundHandler2.write");
    }

}
